<template>
	<view class="image-box"  @click="openImage">
		<image src="@/static/images/user/invoice.png" mode="aspectFill"></image>
		

		<view class="image-msg">
			<view class="image-day">
				<u-icon name="clock" color="#ffffff" size="15"></u-icon>
			
			{{publicJS.timeZoneSwitching(lists.endTime?Number(lists.endTime):lists.info?Number(lists.info.createTime):'','DD/MM/YYYY')}}
			</view>
			<view class="price-price">${{lists.totalMoney|| lists.info.moneys }}</view>
		</view>
		<view class="image-mask">
			<!-- <image src="../../static/icon/open.png" mode=""></image>
			 -->
			
		</view>
	</view>
</template>

<script>
	export default {
		name:"invoice",
		props:{
			lists:{
				default: () => {info:{createTime:""}},
				type:Object
			}
		},
		data() {
			return {
			};
		},
		methods:{
			openImage(){
				this.$emit("openImage",this.lists.image)
			}
		},
		onLoad() {
		console.log(this.lists.info.createTime);	
		}
	}
</script>

<style  lang="scss" scoped>

	.image-box {
		width: 324rpx;
		height: 191rpx;
		border-radius: 10rpx;
		overflow: hidden;
		position: relative;
		margin-bottom: 20rpx;
		border: 1px solid #c9c9c9;
		image {
			width: 100%;
			height: 191rpx;
		}
		.image-msg {
			position: absolute;
			bottom: 0;
			left: 0;
			color: #ffffff;
			background-color: rgba(0, 0, 0, 0.7);
			width: 100%;
			height: 40rpx;
			font-size: 16rpx;
			line-height: 40rpx;
			padding: 0 10rpx;
			display: flex;
			justify-content: space-between;
		}
		.image-mask {
			z-index: 999;
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background-color: rgba(0, 0, 0, 0.3);
			display: flex;
			justify-content: center;
			align-items: center;
			image {
				width: 50rpx;
				height: 50rpx;
			}
		}
	}

</style>